package main

import (
	"context"
	"encoding/json"
	"fmt"
	"google.golang.org/protobuf/types/known/emptypb"
)

func TestGetAllCategorysList() {
	list, err := client.GetAllCategorysList(context.Background(), &emptypb.Empty{})
	if err != nil {
		panic(err)
	}
	fmt.Println(list.JsonData)
	var categoryList []interface{}
	err = json.Unmarshal([]byte(list.JsonData), &categoryList)
	if err != nil {
		panic(err)
	}
	for _, v := range categoryList {
		fmt.Println(v)
	}
}
